package com.hhf.cloud.service.impl;

import com.hhf.cloud.service.OrderNacosService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @author Daniel-黄海峰
 * @Description
 * @create 2024/3/8 11:42
 */
@Service
public class OrderNacosServiceImpl implements OrderNacosService {

    @Trace
    @Tags({@Tag(key = "param",value = "arg[0]")})
    @Tag(key = "String",value = "returnedObj")
    @Override
    public String getCustomSkywalking(String orderNo) {
        return "hello CustomSkywalking:"+orderNo;
    }

    @Trace
    @Tags({@Tag(key = "param",value = "arg[0]"),@Tag(key = "param",value = "arg[1]")})
    @Tag(key = "String",value = "returnedObj")
    @Override
    public String getCustomSkywalkings(String orderNo, Integer nums) {
        return "hello CustomSkywalking:"+orderNo+":"+nums;
    }


}
